﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ARchGL.Platform.Electrocar.Core
{
    /// <summary>
    /// 文件信息 数据实体
    /// </summary>
    [Table("ev_files")]
    public class Files : EntitySoftDeleteBase, ICreationAudited, IHasModificationTime
    {
        /// <summary>
        /// 目录Id
        /// </summary>
        public Guid FileDirectoryId { get; set; }
        /// <summary>
        /// 项目标识
        /// </summary>
        public Guid? ProjectId { get; set; }
        /// <summary>
        /// 文件Id（来自文件系统）
        /// </summary>
        public Guid FileId { get; set; }
        /// <summary>
        /// 文件名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 扩展名
        /// </summary>
        public string Extension { get; set; }
        /// <summary>
        /// 大小（存储单位为 B）
        /// </summary>
        public int Size { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string CreatorUserName { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? LastModificationTime { get; set; }
    }
}
